/**
 * Created by 45865 on 2020/5/28.
 */
function view() {
    // $('input[name="user"]').val("dannel");
    // var loginName = $('input[name="user"]').val()
    $.ajax({
        url:"/view/info",
        // data:{loginName:loginName},
        dataType:"json",
        type:"post",
        success:function (data) {
            console.log(data)
            $('input[name="realname"]').val(data.customerName);
            $('input[name="birthday"]').val(data.customerBirthday);
            $('input[name="sex"]').val(data.customerSex);
            $('input[name="phone"]').val(data.customerPhone);
        }
    })
}
view()